package kr.hyunist.memoappproject.SQLiteHelper;

import kr.hyunist.memoappproject.DTO.*;
import android.content.*;
import android.database.sqlite.*;
import android.database.sqlite.SQLiteDatabase.CursorFactory;

public class MyMemoAppSqlHelper extends SQLiteOpenHelper {

	public MyMemoAppSqlHelper(Context context) {
		super(context, DataTransferFile.DATABASENAME, null, DataTransferFile.DATABASEVERSION);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL(DataTransferFile.CreateTable);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		db.execSQL(DataTransferFile.DropTable);
		onCreate(db);
	}

}
